import request from '../utils/request'

export function getUserInfo() {
  return request.get('/user/info');
}

export function EditUserInfo(params) {
  return request.put('/user/info', params);
}

export function login(params) { // 登录
  return request.post('/user/login', params);
}

export function logout() {
  return request.post('/user/logout')
}

export function register(params) {// 重置
  return request.post('/user/register', params);
}

